from django.urls import path

from apps.areas.views import AddressView, AreasView, SubAreasView, DefaultView, UpdateDestroyAddressView, \
    UpdateTitleAddressView, ChangePasswordView

urlpatterns = [
    path('areas/', AreasView.as_view()),
    path('areas/<area_id>/', SubAreasView.as_view()),
    path('addresses/create/', AddressView.as_view()),
    path('addresses/', AddressView.as_view()),
    path('addresses/<default_id>/default/', DefaultView.as_view()),
    path('addresses/<address_id>/',UpdateDestroyAddressView.as_view()),
    path('addresses/<address_id>/title/',UpdateTitleAddressView.as_view()),
    path('password/', ChangePasswordView.as_view())
]
